home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_02 / saks / overload.h < prev    next >
C/C++ Source or Header  |  1993-12-14  |  337b  |  15 lines

  1. Listing 3 - a class with overloaded virtual functions
  2.  
  3. class stream
  4.     {
  5.     // ...
  6. public:
  7.     virtual stream &get(char &c);
  8.     virtual stream &get(double &d);
  9.     virtual stream &get(char *s);
  10.     virtual stream &put(char c);
  11.     virtual stream &put(double d);
  12.     virtual stream &put(const char *s);
  13.     // ...
  14.     };
  15.